import { FC } from 'react'
import { RouteConfigComponentProps, renderRoutes } from 'react-router-config'

const Admin: FC<RouteConfigComponentProps> = (props) => {
    return (
        <div>
            <h1>Admin</h1>
            <div>
                { renderRoutes(props.route?.routes) }
            </div>
        </div>
    )
}

export default Admin
